/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-05-12
 * Time: 21:46
 */
//模拟实线Arrags.toString
public class test {
    public static String fun(int[] arr){
        String str="["+arr[0];
        for (int i = 1; i < arr.length; i++) {
            str=str+","+arr[i];
        }
        str=str+"]";
        return str;
    }

    public static void main(String[] args) {
        int[] arr={1,2,3,4,5};
        String str=fun(arr);
        System.out.println(str);
    }
}
